package demo;

import java.util.Queue;

public class Test {
    public static void main1(String[] args) {
        MyQueue m=new MyQueue();
        m.offer(12);
        m.offer(22);
        m.offer(32);
        m.offer(42);
        m.offer(52);
        System.out.println(m.poll());
        System.out.println(m.poll());
        System.out.println(m.poll());
        System.out.println(m.poll());
        System.out.println(m.peek());
        System.out.println(m.poll());

    }
}
